package van.planifolia.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by Intellij IDEA<br>
 *
 * @author Planifolia.Van
 * @version 1.0
 * @date 2022/11/17 19:00
 */
@Data
@ApiModel()
public class ComResult {

    public ComResult(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ComResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    @ApiModelProperty(name = "code", value = "操作代码", required = true, dataType = "int")
    private Integer code;
    @ApiModelProperty(name = "message", value = "操作消息", required = true, dataType = "String")
    private String message;
    @ApiModelProperty(name = "data", value = "返回数据",  dataType = "Object")
    private Object data;
}
